package com.cy.hui_jie_dan.mapper;

import com.cy.hui_jie_dan.popj.dto.taskDTO;
import com.cy.hui_jie_dan.popj.entity.Task;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TaskMapper {
    /**
     * delete by primary key
     * @param taskId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer taskId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Task record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(Task record);

    /**
     * select by primary key
     * @param taskId primary key
     * @return object by primary key
     */
    Task selectByPrimaryKey(Integer taskId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Task record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Task record);

    Page<Task> selectByList(taskDTO taskDTO);
}